#include "TextSceneNode.h"
#include "../include/CTypes.h"

CLetterSceneNode::CLetterSceneNode(IFont *fnt,s8 newLetter,vPos nPoints,ISceneNodeReceiveParams):
I2DSpriteSceneNode(ISceneNodeBasicParams),TxtFont(fnt),Letter(newLetter),Points(nPoints)
{
	vector3dvpos TempPos;

	// Refractoriza
	de.push_back(TxtFont->GetNewDrawableFaceForThisLetter(Letter,Points));
}

CLetterSceneNode::~CLetterSceneNode()
{

}

void CLetterSceneNode::Render(IDrawableFaceManager *dfm)
{
	dfm->AddToRenderList2D(de[0]);
}

void CLetterSceneNode::SetLetter(s8 newLetter)
{
	Letter = newLetter;
}

s8 CLetterSceneNode::GetLetter()
{
	return Letter;
}
